package ThreadDemo;

import lombok.extern.slf4j.Slf4j;

/**
 * @author wang'ji'cheng
 * @date 2025/7/30
 */
@Slf4j
public class Demo1 {
    public static void main(String[] args) {
        Thread t1 = new Thread("t1"){
            @Override
            public void run() {
                log.info("t1 is running...");
            }
        };
    t1.start();

    Thread t2 = new Thread(()->
        log.info("running"),"t2"
    );
    t2.start();
    }
}
